<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>47-3D旋转rotate3d.html</title>
    <style>
        body {
            perspective: 200px;
        }
        
        img {
            display: block;
            margin: 100px auto;
            transition: all 2s;
        }
        
        img:hover {
            /* transform: rotateX(180deg); */
            transform: rotateY(180deg);
            /* transform: rotateZ(180deg); */
            transform: rotate3d(1, 1, 1, 45deg);
        }
    </style>
</head>

<body>
    <img src="./images/logo.png" alt="">
</body>

</html>